#include <iostream>
using namespace std;
class beas{
private:
	int a;
public:
	int b;
	beas():a(30),b(300){}
	void show(){
		cout << a << endl;
		cout << b << endl;
	}
};
class derive:public beas{
	int a;
public:
	int b;
	derive(){
		a=10;
		b=10;
	}
	void show(){
		cout << "derive.a=" << a << endl;
	}
};
int main()
{
	derive a;
	a.show();
	//cout << a.beas::b<< endl;
	a.beas::show();
	return 0;
}
